package com.prokarma.pkmst.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * Response class to be returned by Api
 * @author pkmst
 *
 */
/**
 * 状态报告
 */
@ApiModel(description = "状态报告")

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaPKMSTServerCodegen", date = "2021-01-17T02:02:42.424Z")

public class SmsReport   {
  @JsonProperty("NumberId")
  private Long numberId = null;

  @JsonProperty("CellNumber")
  private String cellNumber = null;

  @JsonProperty("MsgID")
  private String msgID = null;

  /**
   * 短信抵达状态 - DELIVRD = 0 短消息转发成功 - EXPIRED = 1 短消息超过有效期 - DELETED = 2 短消息已经被删除 - UNDELIV = 3 短消息是不可转发的 - ACCEPTD = 4 短消息被接收 - UNKNOWN = 5 未知短消息状态 - REJECTD = 6 短消息被拒绝(为保持与SMPP兼容，保留) - BLACKLIST = 7 黑名单 
   */
  public enum StatusEnum {
    NUMBER_0(0),
    
    NUMBER_1(1),
    
    NUMBER_2(2),
    
    NUMBER_3(3),
    
    NUMBER_4(4),
    
    NUMBER_5(5),
    
    NUMBER_6(6),
    
    NUMBER_7(7);

    private Integer value;

    StatusEnum(Integer value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static StatusEnum fromValue(String text) {
      for (StatusEnum b : StatusEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("Status")
  private StatusEnum status = null;

  @JsonProperty("LinkID")
  private Long linkID = null;

  public SmsReport numberId(Long numberId) {
    this.numberId = numberId;
    return this;
  }

   /**
   * 短信唯一标识
   * @return numberId
  **/
  @ApiModelProperty(value = "短信唯一标识")
  public Long getNumberId() {
    return numberId;
  }

  public void setNumberId(Long numberId) {
    this.numberId = numberId;
  }

  public SmsReport cellNumber(String cellNumber) {
    this.cellNumber = cellNumber;
    return this;
  }

   /**
   * 目标号码
   * @return cellNumber
  **/
  @ApiModelProperty(value = "目标号码")
  public String getCellNumber() {
    return cellNumber;
  }

  public void setCellNumber(String cellNumber) {
    this.cellNumber = cellNumber;
  }

  public SmsReport msgID(String msgID) {
    this.msgID = msgID;
    return this;
  }

   /**
   * 网关短消息流水号
   * @return msgID
  **/
  @ApiModelProperty(value = "网关短消息流水号")
  public String getMsgID() {
    return msgID;
  }

  public void setMsgID(String msgID) {
    this.msgID = msgID;
  }

  public SmsReport status(StatusEnum status) {
    this.status = status;
    return this;
  }

   /**
   * 短信抵达状态 - DELIVRD = 0 短消息转发成功 - EXPIRED = 1 短消息超过有效期 - DELETED = 2 短消息已经被删除 - UNDELIV = 3 短消息是不可转发的 - ACCEPTD = 4 短消息被接收 - UNKNOWN = 5 未知短消息状态 - REJECTD = 6 短消息被拒绝(为保持与SMPP兼容，保留) - BLACKLIST = 7 黑名单 
   * @return status
  **/
  @ApiModelProperty(value = "短信抵达状态 - DELIVRD = 0 短消息转发成功 - EXPIRED = 1 短消息超过有效期 - DELETED = 2 短消息已经被删除 - UNDELIV = 3 短消息是不可转发的 - ACCEPTD = 4 短消息被接收 - UNKNOWN = 5 未知短消息状态 - REJECTD = 6 短消息被拒绝(为保持与SMPP兼容，保留) - BLACKLIST = 7 黑名单 ")
  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }

  public SmsReport linkID(Long linkID) {
    this.linkID = linkID;
    return this;
  }

   /**
   * 发送短信请求参数原样返回
   * @return linkID
  **/
  @ApiModelProperty(value = "发送短信请求参数原样返回")
  public Long getLinkID() {
    return linkID;
  }

  public void setLinkID(Long linkID) {
    this.linkID = linkID;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SmsReport smsReport = (SmsReport) o;
    return Objects.equals(this.numberId, smsReport.numberId) &&
        Objects.equals(this.cellNumber, smsReport.cellNumber) &&
        Objects.equals(this.msgID, smsReport.msgID) &&
        Objects.equals(this.status, smsReport.status) &&
        Objects.equals(this.linkID, smsReport.linkID);
  }

  @Override
  public int hashCode() {
    return Objects.hash(numberId, cellNumber, msgID, status, linkID);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SmsReport {\n");
    
    sb.append("    numberId: ").append(toIndentedString(numberId)).append("\n");
    sb.append("    cellNumber: ").append(toIndentedString(cellNumber)).append("\n");
    sb.append("    msgID: ").append(toIndentedString(msgID)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    linkID: ").append(toIndentedString(linkID)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

